# -*- coding:utf-8 -*-

'''
PROJECT_NAME : python_高级
file    : private_field
author  : 1032162439@qq.com
date    : 2022-11-08 10:52
IDE     : PyCharm
'''


class Hero:
    """
    英雄类
    """
    def __init__(self, name, blood):
        self.__name = name
        self.__blood = blood


def test_hero():
    luban = Hero('luban', 100)

    print(luban.__dict__)
    #print(luban.__blood, luban.__name)
    print(luban._Hero__name, luban._Hero__blood)


if __name__ == '__main__':
    test_hero()
